﻿using YNTK.Common.Const;
using SqlSugar;
using System;

namespace YNTK.SubDev.Entitys
{
    /// <summary>
    /// zy_oa_article
    /// </summary>
    [SugarTable("zy_oa_article")]
    [Tenant(ClaimConst.TENANT_ID)]
    public class ZyOaArticleEntity
    {
        /// <summary>
        /// GUID主键
        /// </summary>
        [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
        public string Id { get; set; }
        
        /// <summary>
        /// 所属栏目
        /// </summary>
        [SugarColumn(ColumnName = "ChannelId")]        
        public int? ChannelId { get; set; }
        
        /// <summary>
        /// 所属类别
        /// </summary>
        [SugarColumn(ColumnName = "CategoryId")]        
        public string CategoryId { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "PriorityLevel")]        
        public int? PriorityLevel { get; set; }
        
        /// <summary>
        /// 文章标题
        /// </summary>
        [SugarColumn(ColumnName = "Title")]        
        public string Title { get; set; }
        
        /// <summary>
        /// 配图
        /// </summary>
        [SugarColumn(ColumnName = "ImgUrl")]        
        public string ImgUrl { get; set; }
        
        /// <summary>
        /// 内容
        /// </summary>
        [SugarColumn(ColumnName = "BodyContent")]        
        public string BodyContent { get; set; }
        
        /// <summary>
        /// 排序
        /// </summary>
        [SugarColumn(ColumnName = "Sort")]        
        public int? Sort { get; set; }
        
        /// <summary>
        /// 浏览量
        /// </summary>
        [SugarColumn(ColumnName = "Click")]        
        public int? Click { get; set; }
        
        /// <summary>
        /// 评论数
        /// </summary>
        [SugarColumn(ColumnName = "Decision")]        
        public int? Decision { get; set; }
        
        /// <summary>
        /// 审核状态
        /// </summary>
        [SugarColumn(ColumnName = "CheckFlag")]        
        public int? CheckFlag { get; set; }
        
        /// <summary>
        /// 审核人
        /// </summary>
        [SugarColumn(ColumnName = "Checker")]        
        public string Checker { get; set; }
        
        /// <summary>
        /// 审核时间
        /// </summary>
        [SugarColumn(ColumnName = "CheckDateTime")]        
        public DateTime? CheckDateTime { get; set; }
        
        /// <summary>
        /// 创建人
        /// </summary>
        [SugarColumn(ColumnName = "Creater")]        
        public string Creater { get; set; }
        
        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "CreateTime")]        
        public DateTime? CreateTime { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "LastModifyTime")]        
        public DateTime? LastModifyTime { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "LastModifyUserId")]        
        public string LastModifyUserId { get; set; }
        
        /// <summary>
        /// 自定义链接
        /// </summary>
        [SugarColumn(ColumnName = "CustomLink")]        
        public string CustomLink { get; set; }
        
        /// <summary>
        /// 0,普通文章，1.幻灯片,2.首页栏目
        /// </summary>
        [SugarColumn(ColumnName = "IsType")]        
        public int? IsType { get; set; }
        
        /// <summary>
        /// 有效状态
        /// </summary>
        [SugarColumn(ColumnName = "EnabledMark")]        
        public int? EnabledMark { get; set; }
        
    }
}
